﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ScheduledEmailsToSend" targetNamespace="http://tempuri.org/ScheduledEmailsToSend.xsd" xmlns:mstns="http://tempuri.org/ScheduledEmailsToSend.xsd" xmlns="http://tempuri.org/ScheduledEmailsToSend.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="ILEConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ILEConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.ILEConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ScheduledEmailsToSendTableAdapter" GeneratorDataComponentClassName="ScheduledEmailsToSendTableAdapter" Name="ScheduledEmailsToSend" UserDataComponentName="ScheduledEmailsToSendTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="ILEConnectionString (Web.config)" DbObjectName="dbo.ScheduledEmailsToSend" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillScheduledEmailsToSend" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetScheduledEmailsToSend" GeneratorSourceName="FillScheduledEmailsToSend" GetMethodModifier="Public" GetMethodName="GetScheduledEmailsToSend" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetScheduledEmailsToSend" UserSourceName="FillScheduledEmailsToSend">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [ScheduledEmailsToSend] WHERE (([AssignmentID] = @Original_AssignmentID) AND ([EventType] = @Original_EventType) AND ([CourseID] = @Original_CourseID) AND ([SectionNumber] = @Original_SectionNumber))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AssignmentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssignmentID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_EventType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EventType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CourseID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CourseID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SectionNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SectionNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [ScheduledEmailsToSend] ([AssignmentID], [EventType], [CourseID], [SectionNumber], [SendDateTime]) VALUES (@AssignmentID, @EventType, @CourseID, @SectionNumber, @SendDateTime)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AssignmentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssignmentID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@EventType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EventType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CourseID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CourseID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SectionNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SectionNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@SendDateTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SendDateTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     TOP (5) AssignmentID, EventType, CourseID, SectionNumber, SendDateTime
FROM         ScheduledEmailsToSend
ORDER BY SendDateTime DESC</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [ScheduledEmailsToSend] SET [AssignmentID] = @AssignmentID, [EventType] = @EventType, [CourseID] = @CourseID, [SectionNumber] = @SectionNumber, [SendDateTime] = @SendDateTime WHERE (([AssignmentID] = @Original_AssignmentID) AND ([EventType] = @Original_EventType) AND ([CourseID] = @Original_CourseID) AND ([SectionNumber] = @Original_SectionNumber))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AssignmentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssignmentID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@EventType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EventType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CourseID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CourseID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SectionNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SectionNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@SendDateTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SendDateTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AssignmentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssignmentID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_EventType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EventType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CourseID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CourseID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SectionNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SectionNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="AssignmentID" DataSetColumn="AssignmentID" />
              <Mapping SourceColumn="EventType" DataSetColumn="EventType" />
              <Mapping SourceColumn="CourseID" DataSetColumn="CourseID" />
              <Mapping SourceColumn="SectionNumber" DataSetColumn="SectionNumber" />
              <Mapping SourceColumn="SendDateTime" DataSetColumn="SendDateTime" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ScheduledEmailsToSend" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="ScheduledEmailsToSend" msprop:Generator_DataSetName="ScheduledEmailsToSend">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ScheduledEmailsToSend" msprop:Generator_UserTableName="ScheduledEmailsToSend" msprop:Generator_RowDeletedName="ScheduledEmailsToSendRowDeleted" msprop:Generator_RowChangedName="ScheduledEmailsToSendRowChanged" msprop:Generator_RowClassName="ScheduledEmailsToSendRow" msprop:Generator_RowChangingName="ScheduledEmailsToSendRowChanging" msprop:Generator_RowEvArgName="ScheduledEmailsToSendRowChangeEvent" msprop:Generator_RowEvHandlerName="ScheduledEmailsToSendRowChangeEventHandler" msprop:Generator_TableClassName="ScheduledEmailsToSendDataTable" msprop:Generator_TableVarName="tableScheduledEmailsToSend" msprop:Generator_RowDeletingName="ScheduledEmailsToSendRowDeleting" msprop:Generator_TablePropName="_ScheduledEmailsToSend">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="AssignmentID" msprop:Generator_UserColumnName="AssignmentID" msprop:Generator_ColumnVarNameInTable="columnAssignmentID" msprop:Generator_ColumnPropNameInRow="AssignmentID" msprop:Generator_ColumnPropNameInTable="AssignmentIDColumn" type="xs:int" />
              <xs:element name="EventType" msprop:Generator_UserColumnName="EventType" msprop:Generator_ColumnVarNameInTable="columnEventType" msprop:Generator_ColumnPropNameInRow="EventType" msprop:Generator_ColumnPropNameInTable="EventTypeColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CourseID" msprop:Generator_UserColumnName="CourseID" msprop:Generator_ColumnVarNameInTable="columnCourseID" msprop:Generator_ColumnPropNameInRow="CourseID" msprop:Generator_ColumnPropNameInTable="CourseIDColumn" type="xs:int" />
              <xs:element name="SectionNumber" msprop:Generator_UserColumnName="SectionNumber" msprop:Generator_ColumnVarNameInTable="columnSectionNumber" msprop:Generator_ColumnPropNameInRow="SectionNumber" msprop:Generator_ColumnPropNameInTable="SectionNumberColumn" type="xs:int" />
              <xs:element name="SendDateTime" msprop:Generator_UserColumnName="SendDateTime" msprop:Generator_ColumnVarNameInTable="columnSendDateTime" msprop:Generator_ColumnPropNameInRow="SendDateTime" msprop:Generator_ColumnPropNameInTable="SendDateTimeColumn" type="xs:dateTime" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ScheduledEmailsToSend" />
      <xs:field xpath="mstns:AssignmentID" />
      <xs:field xpath="mstns:SectionNumber" />
      <xs:field xpath="mstns:CourseID" />
      <xs:field xpath="mstns:EventType" />
    </xs:unique>
  </xs:element>
</xs:schema>